package com.tender.desensitization.factory.field;

public class TopClassContext {

    private static ThreadLocal<Class<?>> threadLocal = new ThreadLocal<>();

    public static void setTopClass(Class<?> clazz) {
        threadLocal.set(clazz);
    }

    public static Class<?> getTopClass() {
        return threadLocal.get();
    }

    public static void clear() {
        threadLocal.remove();
    }
}
